from app import db


class User(db.Model):
    id = db.Column(db.Integer, primary_key=True, nullable=False)
    email_address = db.Column(db.String(100), nullable=False, unique=True)
    username = db.Column(db.String(100), nullable=False, unique=True)
    phone_number = db.Column(db.String(50), nullable=True, unique=True)
    password = db.Column(db.String(256), nullable=False)
    logged_in = db.Column(db.Boolean(), nullable=False, default=False)
    register_date = db.Column(db.DateTime, nullable=False)
